{% extends "app/base_manage_table.html" %}
{% load i18n %}

{% block top_of_table %}

<form name="form_copy" method="post" action="{{ main_obj.url }}/copy_multiple/">
<table class="form-table" style="width:100%;">
{% endblock %}

{% block end_of_table %}
{% if objs %}
  {% for obj in objs %}
    {% if not obj.is_deleted %}
{% autoescape off %}
      <tr>
        <td class="bottom-border-ex" width="2%">&nbsp;</td>
        <td class="bottom-border-ex" colspan="3">
          <input type="checkbox" name="copy_{{ obj.id }}" />
        </td>
        <td class="bottom-border-ex" width="2%"><img 
        src="{{ base_site_url }}/dms_media/image/app/{{ obj.app_name }}.gif" border="0" title="{{ obj.app_name }}" />
        </td>
        <td class="bottom-border-ex" width="2%">&nbsp;</td>
        <td class="bottom-border-ex" width="2%">&nbsp;</td>
          <td class="bottom-border-ex">
          {% if obj.is_renameable %}
            <b>{{ obj.name }}</b>
          {% else %}
            {{ obj.name }}
          {% endif %}
          </td>
        <td class="bottom-border-ex">
          <a href="{{ obj.url }}" title="Objekt anzeigen">{{ obj.title }}</a>
        </td>
        <td class="bottom-border-ex" width="20%">{{ obj.last_modified }}</td>
      </tr>
{% endautoescape %}
    {% endif %}
  {% endfor %}
{% else %}
  <tr>
    <td colspan="11">
    {% trans "Dieser Ordner ist leer bzw. enthält keine eigenen Objekte." %}
    </td>
  </tr>
{% endif %}
</tbody>
</table>

<p align="right">
<input name="setCopyButton" type="submit" value="{% trans "Alles auswählen ..." %}"
       onClick="setCopySelect(); return false">
<input name="resetCopyButton" type="submit" value="{% trans "Alles abwählen ..." %}" 
       onClick="resetCopySelect(); return false">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input name="op_copy" type="submit" value="{% trans "Kopieren ..." %}" />
</p>
</form>
{% endblock %}
